package com.wcs.exam.controller.api.req;

import com.wcs.exam.common.enums.LoginTypeEnum;
import com.wcs.exam.common.enums.RegisterSourceEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 微信登录
 *
 * @author wcs
 */
@Data
@Accessors(chain = true)
public class ApiLoginWxBindingReq implements Serializable {

    @Serial
    private static final long serialVersionUID = -2877781106821535513L;

    /**
     * 手机号码
     */
    @Schema(description = "手机")
    private String mobile;
    /**
     * 手机验证码
     */
    @Schema(description = "手机验证码")
    private String code;
    /**
     * UnionId
     */
    @Schema(description = "UnionId")
    private String unionId;
    /**
     * OpenId
     */
    @Schema(description = "OpenId")
    private String openId;

    @Schema(description = "注册来源")
    private Integer registerSource = RegisterSourceEnum.SYS_PC_WX.getCode();

    @Schema(description = "登录方式")
    private Integer loginType = LoginTypeEnum.WX_WEB_AUTH.getCode();

    @Schema(description = "浏览器")
    private String browser;

    @Schema(description = "操作系统")
    private String os;
}
